package com.baijiayun.liveuibase.widgets.dialog;

import android.content.Context;
import androidx.annotation.NonNull;

import com.baijia.bjydialog.MaterialDialog;
import com.baijiayun.liveuibase.R;
import com.baijiayun.liveuibase.utils.ThemeDataUtil;

import org.jetbrains.annotations.NotNull;

public class ThemeMaterialDialogBuilder extends MaterialDialog.Builder {
    public ThemeMaterialDialogBuilder(@NonNull @NotNull Context context) {
        super(context);
        // 初始化换肤颜色配置
        backgroundColor(ThemeDataUtil.getColorFromThemeConfigByAttrId(context, R.attr.base_theme_window_bg_color));
        itemsColor(ThemeDataUtil.getColorFromThemeConfigByAttrId(context, R.attr.base_theme_window_main_text_color));
        titleColor(ThemeDataUtil.getColorFromThemeConfigByAttrId(context, R.attr.base_theme_window_main_text_color));
        contentColor(ThemeDataUtil.getColorFromThemeConfigByAttrId(context, R.attr.base_theme_window_assistant_text_color));
        // 三个选项按钮默认均为产品色
        negativeColor(ThemeDataUtil.getColorFromThemeConfigByAttrId(context, R.attr.base_theme_live_product_color));
        positiveColor(ThemeDataUtil.getColorFromThemeConfigByAttrId(context, R.attr.base_theme_live_product_color));
        neutralColor(ThemeDataUtil.getColorFromThemeConfigByAttrId(context, R.attr.base_theme_live_product_color));
    }
}
